package c.e.a.b.e.c;

import org.checkerframework.checker.nullness.compatqual.NullableDecl;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class y2<T> extends x2<T> {
    public final T a;

    public y2(T t) {
        this.a = t;
    }

    public final boolean b() {
        return true;
    }

    public final T c() {
        return this.a;
    }

    public final boolean equals(@NullableDecl Object obj) {
        if (!(obj instanceof y2)) {
            return false;
        }
        return this.a.equals(((y2) obj).a);
    }

    public final int hashCode() {
        return this.a.hashCode() + 1502476572;
    }

    public final String toString() {
        String valueOf = String.valueOf(this.a);
        StringBuilder stringBuilder = new StringBuilder(valueOf.length() + 13);
        stringBuilder.append("Optional.of(");
        stringBuilder.append(valueOf);
        stringBuilder.append(")");
        return stringBuilder.toString();
    }
}
